package com.ruoyi.teach.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 课程评分对象 nb_course_grade
 * 
 * @author ruoyi
 * @date 2021-12-08
 */
public class NbCourseGrade extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 评分主键 */
    private Long id;

    /** 评分课程 */
    @Excel(name = "评分课程")
    private Long courseId;

    /** 评分人;学生ID */
    @Excel(name = "评分人;学生ID")
    private Long studentId;

    /** 是否匿名;1-&gt;匿名，0-&gt;不匿名 */
    @Excel(name = "是否匿名;1-&gt;匿名，0-&gt;不匿名")
    private Integer anonymous;

    /** 分值 */
    @Excel(name = "分值")
    private Long score;

    /** 评分理由 */
    @Excel(name = "评分理由")
    private String reason;

    /** 状态;0-&gt;正常 1-&gt;删除 */
    @Excel(name = "状态;0-&gt;正常 1-&gt;删除")
    private Integer status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCourseId(Long courseId) 
    {
        this.courseId = courseId;
    }

    public Long getCourseId() 
    {
        return courseId;
    }
    public void setStudentId(Long studentId) 
    {
        this.studentId = studentId;
    }

    public Long getStudentId() 
    {
        return studentId;
    }
    public void setAnonymous(Integer anonymous) 
    {
        this.anonymous = anonymous;
    }

    public Integer getAnonymous() 
    {
        return anonymous;
    }
    public void setScore(Long score) 
    {
        this.score = score;
    }

    public Long getScore() 
    {
        return score;
    }
    public void setReason(String reason) 
    {
        this.reason = reason;
    }

    public String getReason() 
    {
        return reason;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("courseId", getCourseId())
            .append("studentId", getStudentId())
            .append("anonymous", getAnonymous())
            .append("score", getScore())
            .append("reason", getReason())
            .append("createTime", getCreateTime())
            .append("status", getStatus())
            .toString();
    }
}
